package com.labi.designpattern.action;

import com.labi.designpattern.enums.OrderEvent;
import com.labi.designpattern.enums.OrderState;
//import org.springframework.statemachine.action.Action;
//import org.springframework.statemachine.action.Action;
import org.springframework.statemachine.action.Action;
import org.springframework.stereotype.Component;

import java.awt.event.ActionEvent;
import java.beans.PropertyChangeListener;


@Component
public class OrderAction{
    public Action<OrderState,OrderEvent> checkAction(){

        return stateContext -> {
            System.out.println("检查状态 action from orderid>>>"+stateContext.getMessageHeaders().get("orderId"));
        };
    }
}
